<!--
  Generated template for the WithdrawcashPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>余额提现</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding class="content">
	<!-- <div class="num">
		<span class="title">到账银行卡</span>
		<div>
			<ion-item (click)="openNewWindow()">
				<span>添加银行卡</span>
				<ion-icon name="arrow-forward" item-end></ion-icon>
			</ion-item>
		</div>

	</div> -->
	<div class="num">
		<span class="title">到账银行卡</span> 
		<div>
			<ion-item (click)="openNewWindow()" *ngIf="bank == '3'">
				<span>添加银行卡</span>
				<ion-icon name="arrow-forward" item-end></ion-icon>
			</ion-item>
			<ion-item (click)="openNewWindow()" *ngIf="bank == '1'">
				<span class="bank-name">{{bankInfo['bank_name']}}</span>
				<span class="bank-num">尾号{{bankInfo['bank_no']}}</span>
				<ion-icon name="arrow-forward" item-end></ion-icon>
			</ion-item>
		</div>

	</div>

	<div class="paymode" padding>
		<span>提款金额</span>
		<div class="tihuan">
			<span>￥</span>
			<input #input type="number" placeholder="请输入提款金额" (keyup)="inputState(input)">
		</div>
		<div class="text">
			<span>可提现金额:￥{{drawCashMax}}</span>
			<span class="all" (click)="allCash(input)">全部提现</span>
		</div>
		
	</div>



	<div class="next" padding>
		<div class="actived" [ngClass]="{actived:state}" (click)="confirmPay(input)">
			<span>提款</span>
		</div>

	</div>
</ion-content>
